using UnityEngine;

namespace player
{
    public class WallJumpState : State
    {
        [SerializeField] Vector2 force;

        // ========================================================================

        public override void Enter()
        {
            base.Enter();

            player.SetVelocity(force.x * -player.FacingDirection(), force.y);
            player.ChangeState(StateCode.Fall);
        }
    }
}
